package com.central.dataManage.common;

/**
 * @author Tindy
 * @date 2022/1/6
 * @describe
 */
public class Constants {
    /**
     * common properties path
     */
    public static final String COMMON_PROPERTIES_PATH = "/common.properties";
    /**
     * datasource encryption salt
     */
    public static final String DATASOURCE_ENCRYPTION_SALT_DEFAULT = "!@#$%^&*";
    public static final String DATASOURCE_ENCRYPTION_ENABLE = "datasource.encryption.enable";
    public static final String DATASOURCE_ENCRYPTION_SALT = "datasource.encryption.salt";

    /**
     * driver
     */
    public static final String ORG_POSTGRESQL_DRIVER = "org.postgresql.Driver";
    public static final String COM_MYSQL_JDBC_DRIVER = "com.mysql.jdbc.Driver";
    public static final String ORG_APACHE_HIVE_JDBC_HIVE_DRIVER = "org.apache.hive.jdbc.HiveDriver";
    public static final String COM_CLICKHOUSE_JDBC_DRIVER = "ru.yandex.clickhouse.ClickHouseDriver";
    public static final String COM_ORACLE_JDBC_DRIVER = "oracle.jdbc.driver.OracleDriver";
    public static final String COM_SQLSERVER_JDBC_DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    public static final String COM_DB2_JDBC_DRIVER = "com.ibm.db2.jcc.DB2Driver";
    public static final String COM_PRESTO_JDBC_DRIVER = "com.facebook.presto.jdbc.PrestoDriver";



    public static final String RESOURCE_UPLOAD_PATH_DEFAULT = "/td-data";
    public static final String RESOURCE_UPLOAD_PATH = "resource.upload.path";
    public static final String SYS_HIVE_DML_OPERATIONS_DEFAULT = "SELECT,INSERT";
    public static final String SYS_HIVE_DML_OPERATIONS = "sys.hive.dml.operations";


    public static final String HIVE_METASTORE_WAREHOUSE_DIR_DEFAULT="/user/hive/warehouse/";
    public static final String HIVE_METASTORE_WAREHOUSE_DIR="hive.metastore.warehouse.dir";
    public static final String STORE_KEYTAB_DIR_DEFAULT="/tmp/keytabs";
    public static final String STORE_KEYTAB_DIR="store.keytab.dir";
    public static final int KAFKA_DEFAULT_PARTITIONS = 1;
    public static final short KAFKA_DEFAULT_REPLICATION = 2;
}
